﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Drawing;
using Enter.Common.validcode;


namespace WebSystemAdmin.Common
{
    public partial class validcode : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           // Response.Cache.SetNoStore();
            // 在此处放置用户代码以初始化页面

          ValidPic vpic =new ValidPic();

            string rn = RandNum.GetRandNum(4);

            Session["code"] = rn;

            vpic.FontName = "Arial";
            vpic.Fontsize = 12;
            vpic.Width = 50;
            vpic.Height = 18;
            vpic.Randnum = rn;
            vpic.BackColor = Color.FromArgb(254, 254, 254);
            vpic.FontColor = Color.Red;
            vpic.DrawValidPic();
        }
    }
}
